package com.lantosec.hmrp.modules.archives.vo;

import com.lantosec.hmrp.modules.archives.entity.UserQualification;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>
 * 执业资格信息表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-07-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserQualification对象", description="执业资格信息表")
public class UserQualificationVO extends BaseVO<UserQualification> {
    private static final long serialVersionUID = 1L;


    public UserQualificationVO(UserQualification entity){
        this.userQualificationId = entity.getUserQualificationId();
        this.userId = entity.getUserId();
        this.qualificationName = entity.getQualificationName();
        this.qualificationLevel = entity.getQualificationLevel();
        this.qualificationStart = entity.getQualificationStart();
        this.qualificationEnd = entity.getQualificationEnd();
        this.remark = entity.getRemark();
        this.photos = entity.getPhotos();
    }

    @Override
    public UserQualification convertToEntity(){
        return new UserQualification(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userQualificationId;

    @ApiModelProperty(value = "user主表ID")
    private String userId;

    @ApiModelProperty(value = "资格名称")
    private String qualificationName;

    @ApiModelProperty(value = "等级")
    private String qualificationLevel;

    @ApiModelProperty(value = "证书取得时间")
    private String qualificationStart;

    @ApiModelProperty(value = "证书有效期限")
    private String qualificationEnd;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "附件")
    private String photos;

    @ApiModelProperty(value = "附件路径")
    private List<String> savePath;
}
